﻿#ifndef __SS_STACK_H__
#define __SS_STACK_H__
#include "ssArray.h"

namespace StarSeeker
{

template <typename T, ulint NUM=0>
class ssStack
{
public:
	ssStack(void)
	{
	}
	virtual ~ssStack(void)
	{
	}
	//入栈
	bool Push(T& t)
	{
		return m_arr.PushBack(t);
	}
	bool PushCP(T t)
	{
		return m_arr.PushBack(t);
	}
	//出栈
	T* Pop()
	{
		return m_arr.PopBack();
	}
	//入栈
	T* Allot()
	{
		return m_arr.Allot();
	}
	//清空栈
	void Empty()
	{
		m_arr.Empty();
	}
	//成员数量
	ulint Count()
	{
		return m_arr.Count();
	}

private:
	ssArray<T,NUM>		m_arr;
};

}
#endif
